/**
 * 
 */
package dms.service;

import java.text.ParseException;

import dms.dto.BuildingDTO;
import dms.model.Building;
import dms.model.Campus;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface BuildingService {
	
	PageIterator<Building> findByCampus(int start, int count, Campus campus);
	
	Building findById(Long id);
	
	PageIterator<Building> findAll(int start, int count);
	
	Building createBuilding(BuildingDTO building) throws ParseException;
	
	Building updateBuilding(BuildingDTO building) throws ParseException;
	
	void deleteBuildingById(Long id);
	
}
